package cn.edu.nyist.integration.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 胡
 */
public class Integration implements Serializable {
    private Long integrationId;

    private Long userId;

    private Integer totalScore;
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;

    private Integer operateScore;

    private Integer beforeScore;

    private Integer afterScore;

    private String remark;


    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "Integration{" +
                "integrationId=" + integrationId +
                ", userId=" + userId +
                ", totalScore=" + totalScore +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", operateScore=" + operateScore +
                ", beforeScore=" + beforeScore +
                ", afterScore=" + afterScore +
                ", remark='" + remark + '\'' +
                '}';
    }

    public Integration() {
    }

    public Integration(Long integrationId, Long userId, Integer totalScore,
                       Date createTime, Date updateTime, Integer operateScore,
                       Integer beforeScore, Integer afterScore, String remark) {
        this.integrationId = integrationId;
        this.userId = userId;
        this.totalScore = totalScore;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.operateScore = operateScore;
        this.beforeScore = beforeScore;
        this.afterScore = afterScore;
        this.remark = remark;
    }

    public Long getIntegrationId() {
        return integrationId;
    }

    public void setIntegrationId(Long integrationId) {
        this.integrationId = integrationId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(Integer totalScore) {
        this.totalScore = totalScore;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getOperateScore() {
        return operateScore;
    }

    public void setOperateScore(Integer operateScore) {
        this.operateScore = operateScore;
    }

    public Integer getBeforeScore() {
        return beforeScore;
    }

    public void setBeforeScore(Integer beforeScore) {
        this.beforeScore = beforeScore;
    }

    public Integer getAfterScore() {
        return afterScore;
    }

    public void setAfterScore(Integer afterScore) {
        this.afterScore = afterScore;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}